package de.pdbm.swt.aufgabe4;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

import org.jdom2.Document;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;

public class main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
	
		String pfad = "D:\\Studium\\3. Semester\\Softwaretechnik\\Aufgabe4\\mitarbeiter.xml";
		String pfad2 = "D:\\Studium\\3. Semester\\Softwaretechnik\\Aufgabe4\\produkte.xml";
          
		
		 XmlIo test = new XmlIoImpl();
		 
		 
		 InputStream in;
		 InputStream in2;
		try {
			in = new FileInputStream(pfad);
			in2 = new FileInputStream(pfad2);
			 test.readMitarbeiter(in);
			 test.readProdukte(in2);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		  
      	
		
		
	}
}
	